package com.master.mapper.modelMapper;

import com.master.constant.model.CsRepair;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * CsRepairDao继承基类
 */
@Repository
public interface CsRepairDao extends MyBatisBaseDao<CsRepair, Long> {

    List<Map<String, Object>> getRepairsByCondition(Map<String, Object> condition);

    int allocateRepairs(@Param("repairIds") List<Long> repairIds, @Param("coordinateParams") Map<String, Object> coordinateParams);

    int dealRepair(@Param("repairId") Long repairId, @Param("repair") CsRepair repair);
}